import {
  IS_LENGTH,
  IsInt,
  IsNotEmpty,
  IsOptional,
  IsString,
  Length,
  MaxLength,
  MinLength,
} from 'class-validator';

export class CreateDictTypeDto {
  @IsNotEmpty()
  @IsString()
  dictName: string;

  @IsNotEmpty()
  @IsString()
  @Length(3, 20)
  dictCode: string;

  @IsOptional()
  @IsInt()
  status?: number;

  @IsString()
  @IsOptional()
  remark?: string;
}
